package com.zs;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * @description: 证券DDD启动类
 * @author: wzc
 * @createDate: 2021/6/13 23:47
 */
@SpringBootApplication
//@MapperScan("com.zs.*")
@EnableFeignClients
@EnableDiscoveryClient
public class ShareDddApplication {

    public static void main(String[] args) {
        SpringApplication.run(ShareDddApplication.class, args);
        System.out.println("================share-ddd项目启动成功===================");
    }

    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }

}
